package com.pn.mapper;

import com.pn.model.ProductType;

import java.util.List;

public interface ProductTypeMapper {
    int deleteByPrimaryKey(Integer typeId);

    int insert(ProductType record);

    int insertSelective(ProductType record);

    ProductType selectByPrimaryKey(Integer typeId);

    int updateByPrimaryKeySelective(ProductType record);

    int updateByPrimaryKey(ProductType record);
    //查询所有商品分类
    List<ProductType> findAllProductType();
    //校验分类编码是否已经存在
    ProductType findTypeByCodeOrName(ProductType productType);
}